package cn.lh.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 产品表
 * </p>
 *
 * @author linhong
 * @since 2025-04-14
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("t_product")
public class ProductDto extends Model<ProductDto> {

    private static final long serialVersionUID=1L;

      /**
     * 主键id
     */
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 产品名称
     */
      private String name;

    /**
     * 产品类型id
     */
      private Integer typeId;


    @Override
    protected Serializable pkVal() {
          return this.id;
      }

}
